package com.ywm.educms.controller;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ywm.commonUtil.R;
import com.ywm.educms.entity.CrmBanner;
import com.ywm.educms.service.CrmBannerService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.xml.crypto.Data;
import java.util.List;

/**
 * <p>
 * 首页banner表 前端控制器
 * </p>
 *
 * @author testjava
 * @since 2020-05-23
 */
@RestController
@RequestMapping("/educms/adminBanner")
public class CrmBannerFrontController {
    @Autowired
    private CrmBannerService service;
    @GetMapping("getAllBanner")
    private R getAllBanner(){
        List<CrmBanner> list=service.selectAllBanner();
        return R.ok().data("list",list);
    }

}

